Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 8, 2025

Implementation Complete ✅

Summary

Updated documentation and release workflow to include the new --disable-spec-validation flag.

Changes Made

1. README.md Updates

  • ✅ Added --disable-spec-validation to CLI options section
  • ✅ Added new section "Handling Specs with Validation Issues" with:
    • When to use the flag
    • Usage examples
    • Side-by-side comparison (with/without flag)
    • Important notes about validation behavior
  • ✅ Updated Features section to include flexible validation

2. Release.yml Updates

  • ✅ Added "Flexible Spec Validation" to New Features section
  • ✅ Added dedicated "Spec Validation Control" section with:
    • Usage example
    • Use cases for the flag
  • ✅ Updated Quality Assurance section:
    • Updated test count to 183 tests
    • Updated test suite count to 22
    • Added validation testing details (16 new tests)
  • ✅ Added flag to Key Features summary

Documentation Structure

README.md additions:

## Handling Specs with Validation Issues
- When to Use
- Usage examples
- With/without flag comparison
- Important notes

Release.yml additions:

### 🛡️ Spec Validation Control
- Usage example
- Use cases
- Quality assurance updates

Testing

  • ✅ All 183 tests passing
  • ✅ CLI help displays flag correctly
  • ✅ No breaking changes

Ready for Release

Documentation is now complete and ready for the next release with comprehensive information about the --disable-spec-validation feature.

Original prompt

add new flag while running tool - disable-spec-validation ( in case if a spec has validation or refs issues we need count coverage)


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits October 8, 2025 21:45
Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
…idation/ref issues

Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new flag to disable spec validation during tool run Add --disable-spec-validation flag to process specs with validation or reference issues Oct 8, 2025
Copilot AI requested a review from dreamquality October 8, 2025 21:53
@dreamquality
Copy link
Owner

@copilot add more tests and verify cli tool works fine

…6 new tests)

Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 9, 2025

@copilot add more tests and verify cli tool works fine

Added 16 comprehensive tests (total now 183 tests, all passing). Tests cover:

Unit tests (13): broken refs, JSON specs, circular refs, missing fields, edge cases
CLI tests (14): validation behavior, Newman support, multi-API, flag interactions, output verification

Verified CLI works correctly with:

  • Invalid YAML/JSON specs ✓
  • Newman reports ✓
  • Multiple API files ✓
  • Combined with --strict-query/--strict-body ✓
  • Valid specs (backward compatible) ✓

Commit: [Short hash will be shown after push]

…r reference issues

Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
@dreamquality
Copy link
Owner

@copilot update readme.md and prepare release.yml file

Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 9, 2025

@copilot update readme.md and prepare release.yml file

Updated documentation and release workflow. Changes include:

README.md:

  • Added --disable-spec-validation to CLI options
  • New "Handling Specs with Validation Issues" section with usage examples and use cases
  • Updated Features list to include flexible validation

release.yml:

  • Added feature to release notes with usage example
  • Updated test count (183 tests, 22 suites)
  • Added spec validation control section

Ready for release workflow execution.

Commit: 08d4f33

Co-authored-by: dreamquality <130073078+dreamquality@users.noreply.github.com>
Removed several features from the release notes and summary.
@dreamquality dreamquality marked this pull request as ready for review October 9, 2025 08:34
Copilot AI review requested due to automatic review settings October 9, 2025 08:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new --disable-spec-validation flag to handle OpenAPI/Swagger specifications with validation or reference issues. This allows the tool to process and calculate coverage for specs that might have broken references or validation errors.

  • Add --disable-spec-validation CLI flag to bypass spec validation
  • Update loadAndParseSpec function to support disabling validation
  • Add comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/disable-spec-validation.test.js New comprehensive unit tests for the disable validation feature
test/disable-spec-validation-cli.test.js New CLI integration tests for the --disable-spec-validation flag
readme.md Documentation updates including new CLI option and usage examples
lib/swagger.js Core implementation to support disabling validation in loadAndParseSpec
cli.js CLI option definition and flag passing to the core library
auto-detect-newman.html Timestamp update in test fixture
.github/workflows/release.yml Release notes updates for the new feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dreamquality dreamquality merged commit 754776e into main Oct 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants